package org.dtrd.modules.achievement.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dtrd.modules.achievement.entity.po.DtrdEntRdSigninRecordSummary;
import org.dtrd.modules.achievement.mapper.DtrdEntRdSigninRecordSummaryMapper;
import org.dtrd.modules.achievement.service.IDtrdEntRdSigninRecordSummaryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 萧
 * @date 2021-12-06 22:34:37
 **/
@Service
@DS("multi-datasource1")
@Slf4j
public class DtrdEntRdSigninRecordSummaryServiceImpl extends ServiceImpl<DtrdEntRdSigninRecordSummaryMapper, DtrdEntRdSigninRecordSummary> implements IDtrdEntRdSigninRecordSummaryService {

    @Override
    public List<DtrdEntRdSigninRecordSummary> getThisWeekSummary(String startOfWeek) {
        return baseMapper.getThisWeekSummary(startOfWeek);
    }

    @Override
    public List<DtrdEntRdSigninRecordSummary> getLastWeekSummary(String startOfWeek) {
        return baseMapper.getLastWeekSummary(startOfWeek);
    }
}
